kexec: Flush console on kexec_crash().
authorKeir Fraser <keir@xensource.com>
Fri, 15 Jun 2007 15:30:10 +0000 (16:30 +0100)
committerKeir Fraser <keir@xensource.com>
Fri, 15 Jun 2007 15:30:10 +0000 (16:30 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/kexec.c

index c0fe6d239622d324ffb5f5af970c0fb6807f7e14..577492fec0214a4cdfa6926525a9766197162d7e 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/atomic.h>
 #include <xen/spinlock.h>
 #include <xen/version.h>
+#include <xen/console.h>
 #include <public/elfnote.h>
 
 #ifndef COMPAT
@@ -110,6 +111,8 @@ void kexec_crash(void)
     if ( !test_bit(KEXEC_IMAGE_CRASH_BASE + pos, &kexec_flags) )
         return;
 
+    console_start_sync();
+
     one_cpu_only();
     kexec_crash_save_cpu();
     machine_crash_shutdown();